# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
pkgname=parallel
pkgver=20200722
pkgrel=0
pkgdesc="Shell tool for executing jobs in parallel"
arch="noarch"
url="https://www.gnu.org/software/parallel"
license="GPL-3.0-or-later"
options="!check" # Test suite not part of src pkg
depends="perl"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/parallel/parallel-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="acffc0a08ef599275f54f710244fde45efd85d15b8b98bff6df2ad113c06334de9ffe641c61a55da51e62025f8bfe66d1318959f08c6cffe1ab2292c7cdb8cd1  parallel-20200722.tar.bz2"
